package com.example.day17;

import java.io.IOException;

/**
 * @author Lenovo
 */
public class FileInputStreamDemo02 {
    public static void main(String[] args) throws IOException {
        byte[] bys = new byte[1024]; 
        int len;
        Process.PipeInputStream fis = null;
        while ((len=fis.read(bys))!=-1) {
            System.out.print(new String(bys, 0, len));
        }
        fis.close();
        }
}
